# 闭包=函数+环境变量


def curve_pre():
    a = 3

    def curve(x):
        return a*x*x
    return curve


a = 100
f = curve_pre()
print(f.__closure__)
print(f.__closure__[0].cell_contents)
a = f(2)
print(a)
